const CryptoJS = require('crypto-js')
const Key = 'PARKING--SERVICE__CRYPTO'

export function encrypt (word, key) {
  const ckey = key || Key
  const result = CryptoJS.AES.encrypt(word, ckey, {})
  return result.toString()
};
